/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Required;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.cms.entity.TaskGroup;
import com.thinkgem.jeesite.modules.cms.entity.taskGroupData;

// TODO: Auto-generated Javadoc
/**
 * 合并任务描述DAO接口.
 *
 * @author leo
 * @version 2017-02-20
 */
@MyBatisDao
public interface TaskGroupDao extends CrudDao<TaskGroup> {
	 
 	/**
 	 * Insert and get id.
 	 *
 	 * @param tg the tg
 	 * @return the int
 	 */
 	public int insertAndGetId(TaskGroup tg);  
 	
 	public List<TaskGroup> getByDateToPrint(@Param("sdate") String date1 ,@Param("edate")String date2);
 	
 	public abstract int updateIsStart(@Param("id") String paramString1, @Param("isstart") int paramInt, @Param("userid") String paramString2);
 	public abstract taskGroupData getById(@Param("id") String paramString1);
 	
 	public abstract taskGroupData getByIdAndUser(@Param("id") String paramString1,@Param("userid") String paramString2);
 	
 	public abstract int updateIscomplete(@Param("id") String paramString1, @Param("taskcomplete") int paramInt, @Param("userid") String paramString2);
 	
 	
 	
}